package com.huadao.cart_ccs.data.bo;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.main.CartApplication;

/**
 * 夹管阀，摇床
 */
public class ValveBO extends BaseBO {
    public static final byte ModularType_Valve =0x0A;
    public static final byte Valve_medium = 0x01;//培养基夹管阀
    public static final byte Valve_saline = 0x02;//生理盐水夹管阀
    public static final byte Valve_shaker = 0x03;//摇床
    public static final byte open= (byte) 0xCC;//打开
    public static final byte close= (byte) 0xAA;//关闭

    @Override
    protected String getOrderStr() {
        String orderStr = null;
        if (order == open) {
            orderStr = CartApplication.getInstance().getString(R.string.open);
        } else if (order == close) {
            orderStr = CartApplication.getInstance().getString(R.string.close);
        }
        return orderStr;
    }

    @Override
    protected String getModularNOStr() {
        String modularNOStr=null;
        if(modularNO==Valve_medium){
            modularNOStr=CartApplication.getInstance().getString(R.string.mediumValve);
        }else if(modularNO==Valve_saline){
            modularNOStr=CartApplication.getInstance().getString(R.string.salineValve);
        }else if(modularNO==Valve_shaker){
            modularNOStr=CartApplication.getInstance().getString(R.string.shaker);
        }
        return modularNOStr;
    }
}
